import url from '@/url.config'
export default ({ service, request, tools }) => ({
    // 获取设备状态和信息
    GetEquipmentStatus(data) {
        return request({
            url: url.ip3 + "/equipment/findByPage",
            method: "post",
            data: data
        })
    },
    //弹出框表格记录列表
    PostwarningRecords(data) {
        return request({
            url: url.ip3 + "/waring/record/select",
            method: "post",
            data: data
        })
    },
    //监测报警处理记录列表
    PostHandleResult(data) {
        return request({
            url: url.ip3 + "/waring/record/handleResult/select",
            method: "post",
            data: data
        })
    },
    //获取设备更改提醒信息的列表
    GetequipmentListTips(data) {
        return request({
            url: url.ip3 + "/spareRemind/equipmentList",
            method: "post",
            data: data
        })
    },
    //备件提醒更改天数
    PostupdateExpectedLife(data) {
        return request({
            url: url.ip3 + "/spareRemind/updateExpectedLife",
            method: "post",
            data: data
        })
    },
    //查找设备故障信息
    PostfindEquipmentFaultList(data) {
        return request({
            url: url.ip3 + "/fault/deal/findEquipmentFaultList",
            method: "post",
            data: data
        })
    },
    //下达运维
    PostnoticeOperations(data) {
        return request({
            url: url.ip3 + "/fault/deal/noticeOperations",
            method: "post",
            data: data
        })
    },
    //录入知识库
    Getrepository(id) {
        return request({
            url:url.ip1 +`/fault/solution/input/repository/${id}`,
            method: "get",

        })
    },
    //查询用户
    PostuserFindByPage(data) {
        return request({
            url: url.ip2+"/user/findByPage",
            method: "post",
            data: data
        })
    },
    //获取设备更改提醒的列表
    PostequipmentList(data) {
        return request({
            url: url.ip3+"/spareRemind/equipmentList",
            method: "post",
            data: data
        })
    },
    //获取试剂类型更改提醒的列表
    PostreagentList(data) {
        return request({
            url: url.ip3+"/spareRemind/reagentList",
            method: "post",
            data: data
        })
    },
    //获取故障类型
    GetFaultType() {
        return request({
            url: url.ip1+"/fault/solution/find/fault/type",
            method: "get",
            
        })
    },
    //异常处理上报
    PostHandle(data) {
        return request({
            url: url.ip3+"/waring/record/handle",
            method: "post",
            data:data
        })
    },
    //从申领库存查找备件
    PostrepairsList(data) {
        return request({
            url: url.ip3+"/spare/equipment/repairs/list",
            method: "post",
            data:data
        })
    },
    //从申领库存查找备机
    PoststandbyList(data) {
        return request({
            url: url.ip3+"/spare/equipment/repairs/standby/list",
            method: "post",
            data:data
        })
    },
    //填写备件更换记录
    PostwriteChange(data) {
        return request({
            url: url.ip3+"/spare/write/parts/repair",
            method: "post",
            data:data
        })
    },
    //填写备机更换记录
    PoststandbyChange(data) {
        return request({
            url: url.ip3+"/spare/write/standby/repair",
            method: "post",
            data:data
        })
    },

})